<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<!-- CSRF Token -->
		<meta name="csrf-token" content="{{ csrf_token() }}">
		<title>隐患排查管理平台</title>
		<!-- Styles -->
		<link rel="stylesheet" type="text/css" href="/css/easyui/themes/icon.css">
		<link rel="stylesheet" type="text/css" href="/css/easyui/themes/gray/easyui.css">
		<link rel="stylesheet" type="text/css" href="/css/admin.css">
		<link rel="stylesheet" type="text/css" href="/css/admin2.css">

		<script type="text/javascript" src="/js/jquery-2.1.4.min.js"></script>
		<script type="text/javascript" src="/css/easyui/jquery.easyui.min.js"></script>
		<link rel="stylesheet" href="/component/layui/css/layui.css" media="all">
		<script src="/js/echarts.min.js"></script>
		<script>
			$(document).ready(function() {
				var url = location.href
	if (url.indexOf('chart') >= 1) {
					$('.chart').addClass('mj_hover_menu')
	}
				if (url.indexOf('map') >= 1) {
					$('.map').addClass('mj_hover_menu')
	}
				if (url.indexOf('report') >= 1) {
					$('.reportlist').addClass('mj_hover_menu')
	}
				if (url.indexOf('grid') >= 1) {
					$('.grid').addClass('mj_hover_menu')
	}
			})
		</script>
		<script src="/component/layui/layui.js"></script>
		<script>
			layui.use(['layer', 'table'], function() {
				var layer = layui.layer;
				//错误提示
				@if(count($errors) > 0)
					@foreach($errors->all() as $error)
						layer.msg("{{$error}}", { icon: 5 });
						@break
					@endforeach
				@endif

				//信息提示
				@if(session('status'))
					layer.msg("{{session('status')}}", { icon: 6 });
				@endif

			});
		</script>
	</head>
	<body class="reed">

		@yield('content')
	</body>
</html>
